package com.panku.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @Author: jack
 * @Description:
 * @Date Create in 9:10 2021-01-21
 **/
@Data
@Entity(name = "shop_user")
public class User {

    public User() {
    }

    public User(String username, String userpasswod) {
        this.username = username;
        this.userpasswod = userpasswod;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer uid;

    private String username;

    private String userpasswod;


}
